package com.yupi.yuaiagent.domain.entity;



import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.ai.chat.messages.Message;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 聊天记录实体类
 */
@Data
@TableName(value = "chat_memory")
public class AiChatMessage implements Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String conversationId;

    private String type;

    private String content;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
